<%-- 
    Document   : editproviderdata
    Created on : Jun 12, 2011, 10:23:57 AM
    Author     : A7med Kotb
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Edit Provider Page</title>
        <link rel="stylesheet" media="all" type="text/css" href="css/jquery-ui-1.8.6.custom.css" />
        <script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
        <script type="text/javascript" src="js/jquery-ui-1.8.6.custom.min.js"></script>
        <script type="text/javascript" src="js/jquery-ui-timepicker-addon.js"></script>

        <style>
            .ui-timepicker-div .ui-widget-header{ margin-bottom: 8px; }
            .ui-timepicker-div dl{ text-align: left; }
            .ui-timepicker-div dl dt{ height: 25px; }
            .ui-timepicker-div dl dd{ margin: -25px 10px 10px 65px; }
            .ui-timepicker-div td { font-size: 90%; }
        </style>
    </head>
    <body>
        <script>
            $(function() {
                $( "#startDate" ).datepicker();
            });
            $(function() {
                $('#startTime').timepicker({
                    ampm: false,
                    hourMin: 0,
                    hourMax: 23
                });
            });
        </script>
        <h1>Edit Your Profile</h1>
        <html:form action="/EditProfileURL.do">
        <table> 
            <tr><td colspan="2" align="center"><h2>General Info</h2></td></tr>
                    <tr>
                        <td>Provider Name</td>
                        <td><html:text property="providerName" value="${generalinfo.getName()}" size="40" readonly="true"></html:text></td>
                    </tr>
                    <tr>
                        <td>Provider Type</td>
                        <td><html:text property="type" value="${generalinfo.getType()}" size="40"></html:text></td>
                    </tr>
                    <tr>
                        <td>Provider Table Name</td>
                        <td><html:text property="tableName" value="${generalinfo.getTableName()}" size="40" readonly="true"></html:text></td>
                    </tr>
                    <tr>
                        <td>Provider Script Path</td>
                        <td><html:text property="scriptPath" value="${generalinfo.getScriptPath()}" size="40"></html:text></td>
                    </tr>
            </table>
                    <br>
                    <table>
                    <tr>
                        <td colspan="2" align="center"><h2>FTP Information</h2></td> 
                    </tr>
                    <tr>
                        <td>Host Name</td>
                        <td><html:text property="host" value="${ftpinfo.getHost()}" size="40"></html:text></td>
                    </tr>
                    <tr>
                        <td>Remote Directory</td>
                        <td><html:text property="remoteDir" value="${ftpinfo.getRemoteDir()}" size="40"></html:text></td>
                    </tr>
                    <tr>
                        <td>File Name</td>
                        <td><html:text property="fileName" value="${ftpinfo.getFileName()}" size="40"></html:text></td>
                    </tr>
                    <tr>
                        <td>File Extension</td>
                        <td><html:text property="fileExtension" value="${ftpinfo.getFileExtension()}" size="40"></html:text></td>
                    </tr>
                    <tr>
                        <td>User Name</td>
                        <td><html:text property="userName" value="${ftpinfo.getUserName()}" size="40"></html:text></td>
                    </tr>
                    <tr>
                        <td>User Password</td>
                        <td><html:text property="password" value="${ftpinfo.getPassword()}" size="40"></html:text></td>
                    </tr>
                    <tr>
                        <td>Local Directory</td>
                        <td><html:text property="localDir" value="${ftpinfo.getLocalDir()}" size="40"></html:text></td>
                    </tr>
                    </table>
                    <table>
                    <tr>
                        <td colspan="2" align="center"><h2>Schedule Data</h2></td>
                    </tr>
                    <tr>
                        <td>Schedule Period</td>
                        <td><html:text property="schedule" value="${scheduledata.getSchedule()}" size="40"></html:text></td>
                    </tr>
                    <tr>
                        <td>Schedule Modifier</td>
                        <td><html:text property="modifier" value="${scheduledata.getModifier()}" size="40"></html:text></td>
                    </tr>
                    <tr>
                        <td>Schedule Start Date</td>
                        <td><html:text styleId="startDate" property="startDate" value="${startdate}" size="40"></html:text></td>
                    </tr>
                    <tr>
                        <td>Schedule Start Time</td>
                        <td><html:text styleId="startTime" property="startTime" value="${scheduledata.getStartTime()}" size="40"></html:text></td>
                    </tr>
                    <tr>
                        <td>Schedule Day</td>
                        <td><html:text property="day" value="${scheduledata.getDay()}" size="40"></html:text></td>
                    </tr>
        </table>
                        <html:submit value="Update" property="actionType"></html:submit>
       </html:form>
    </body>
</html>
